<?php
/**
 * Created by PhpStorm.
 * User: ewen
 * Date: 5/6/21
 * Time: 1:19 PM
 */

namespace app\common\model;


class OptionAccount extends Common
{
    //  期权用户对应表

    protected $table = 'options.option_account';

    /**
     * 获取期权用户ID
     * @param $userID
     * @return mixed
     */
    public static function getOptionUserID($userID)
    {
        $uID = self::where(['aid' => $userID, 'is_delete' => 0])->value('uid');
        return $uID;
    }
}